// ActionScript file
import mx.controls.Alert
import audioManager

public var aMusic:audioManager = new audioManager;
private var dp:Object;

private function initApp():void
{
	if (songService.lastResult.song!=undefined) {
                    //mx.controls.Alert.show("number of songs: " + songService.lastResult.song.length);
                    var aryTemp:Array = new Array();
                    for (var i:Number=0; i<songService.lastResult.song.length; i++) {
                        aryTemp.push({value: songService.lastResult.song[i].name, label: songService.lastResult.song[i].name, data: songService.lastResult.song[i].data});
                    }
                    dp = aryTemp;
                    cbxMusic.dataProvider = dp;                
	}
}

